<div id="decView"></div>
<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>境外收款主单</span></div>
<div class="layui-card-body">
    <div id="accountView"></div>
</div>
<div id="show_overseas_payment_memo">
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-file-text"></i>附件资料</span></div>
    <div class="layui-card-body">
        <a href="javascript:" class="file-size" doc-id="" show-file="paymentMemo" edit="false"></a>
    </div>
</div>


<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>订单明细</span></div>
<div class="layui-card-body">
    <table class="layui-hide" id="order-list" lay-filter="order-list"></table>
</div>

<script type="text/html" id="accountViewTemp">
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">收款单号：</label><label class="fval">{{d.docNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">到账时间：</label><label class="fval">{{removeNull(d.accountDate)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">收款主体：</label><label class="fval">{{removeNull(d.overseasName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">收款行：</label><label class="fval">{{removeNull(d.receivingBank)}}（{{removeNull(d.receivingBankNo)}}）</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">结算客户：</label><label class="fval">{{removeNull(d.customerName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">付款方：</label><label class="fval">{{removeNull(d.payer)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">付款行：</label><label class="fval">{{removeNull(d.payerBank)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">付款行账号：</label><label class="fval">{{removeNull(d.payerBankNo)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">收款金额：</label><label class="fval">{{formatCurrency(d.accountValue)}} {{removeNull(d.currencyName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">到账金额：</label><label class="fval">{{formatCurrency(d.accountValue - d.fee)}} {{removeNull(d.currencyName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">手续费：</label><label class="fval">{{formatCurrency(d.fee)}} {{removeNull(d.currencyName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">认领金额：</label><label class="fval">{{formatCurrency(d.writeValue)}} {{removeNull(d.currencyName)}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">备注：</label><label class="fval">{{removeNull(d.memo)}}</label></div>
    </div>
</script>

<script type="text/html" id="statusTemp">
    <a href="javascript:" class="{{d.statusId}}" lay-event="statusOperation">{{d.statusDesc}}</a>
</script>